<!doctype html>
<html lang="en" xmlns:p="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap demo</title>
    <link href="/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
</head>
<body>
<div align="center"><h1>学生管理系统登录界面</h1></div>
<p th:text="${username}"/>

<span th:text="${pwd}"/>
<div th:text="${students}"/>
<table class="table table-striped">
    <tr><td>id</td><td>name</td><td>password</td>
        <td>sex</td><td>clazz</td><td>birthday</td></tr>
    <tr th:each="student:${students}">
        <td th:text="${student.id}"></td>
        <td th:text="${student.name}"></td>
        <td th:text="${student.password}"></td>
        <td th:text="${student.sex==0?'女':'男'}"></td>
        <td th:text="${student.clazz}"></td>
        <td th:text="${student.birthday}"></td>
    </tr>
</table>
<div align="center"><a href="#" class="list-group-item" onclick="loadPage('/Student/toAdd.do')">增加学生</a> </div>
<script src="/bootstrap/dist/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>
</html>